// vite.config.js
import { defineConfig } from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import Components from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue/node_modules/unplugin-vue-components/dist/resolvers.js";
import AutoImport from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue/node_modules/unplugin-auto-import/dist/vite.js";
var __vite_injected_original_dirname = "D:\\\u684C\u9762\\vue\\\u6E38\u620F\u5E73\u53F0\u65B0\\game_vue";
var vite_config_default = defineConfig({
  base: "./",
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()],
      //自动导入element-plus相关函数
      imports: ["vue", "vue-router"]
      //自动导入vue相关函数
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  resolve: {
    // 配置路径别名
    alias: {
      // 使用 '@' 作为 'src' 目录的别名
      "@": path.resolve(__vite_injected_original_dirname, "src")
    }
  },
  vue: {
    compilerOptions: {
      isCustomElement(tag) {
        return /^swiper/.test(tag);
      }
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        // 在这里配置全局变量或引入全局样式文件
        // 如果你的全局变量文件是src/assets/styles/global.less
        additionalData: `@import "@/styles/global.less";`
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceM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